//
//  NvTakeImagePreview.m
//  NvSellerShow
//
//  Created by dx on 17/6/26.
//  Copyright © 2017年 Meicam. All rights reserved.
//

#import "NvTakeImagePreview.h"

@interface NvTakeImagePreview ()

- (IBAction)cancelClick:(id)sender;
- (IBAction)sureClick:(id)sender;

@end

@implementation NvTakeImagePreview

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    if ([super initWithCoder:aDecoder]) {
        self.hidden = YES;
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (IBAction)cancelClick:(id)sender {
    if ([self.delegate respondsToSelector:@selector(takeImagePreview:clickCancel:)]) {
        [self.delegate takeImagePreview:self clickCancel:sender];
    }
}

- (IBAction)sureClick:(id)sender {
    if ([self.delegate respondsToSelector:@selector(takeImagePreview:clickSure:)]) {
        [self.delegate takeImagePreview:self clickSure:sender];
    }
}

@end
